{% extends "base_blank.volt" %}

{% block pageFooter%}
    {{ javascript_include("/assets/manage/js/sys/opUpdateBase.js", false) }}
{% endblock %}

{% block content %}
    <div class="container-fluid" id="content_box_blank">
        <div class="row">
            <div class="col-xs-12">
                <form id="form_update" class="form-horizontal" role="form" method="post" action="" target="ifr_send_file" enctype="multipart/form-data">
                    <input type="hidden" name="callback" value="parent.setFormResult" >
                    <input type="hidden" name="operator_id" value="{{ id }}" >
                    <div class="row form-group">
                        <label class="col-xs-2 control-label">账户名</label>
                        <div class="col-xs-6">
                            <input type="text" class="form-control" name="operator_account" data-rule="required;" value="{{ opInfo.operator_account|escape_attr }}">
                        </div>
                    </div>
                    <div class="row form-group">
                        <label class="col-xs-2 control-label">姓名</label>
                        <div class="col-xs-6">
                            <input type="text" class="form-control" name="operator_show_name" data-rule="required;" value="{{ opInfo.operator_show_name|escape_attr }}">
                        </div>
                    </div>
                    <div class="row form-group">
                        <label class="col-xs-2 control-label">分组</label>
                        <div class="col-xs-3">
                            <select class="form-control" name="operator_group" data-rule="required;">
                                {% for og in opGroup %}
                                    <option value="{{ og.group_id }}" {{ opInfo.operator_group == og.group_id ? 'selected="selected"' : '' }}>{{ og.group_name }}</option>
                                {% endfor %}
                            </select>
                        </div>
                    </div>
                    <div class="row form-group">
                        <label class="col-xs-2 control-label">备注</label>
                        <div class="col-xs-6">
                            <textarea class="form-control" name="operator_remark" rows="3">{{ opInfo.operator_remark|e }}</textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-offset-2 col-xs-10">
                            <button type="submit" class="btn btn-primary"><i class="fa fa-floppy-o fa-lg"></i> 保 存</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
{% endblock %}
